package com.xinjixian.webgame;

import android.content.Context;
import android.content.SharedPreferences;

import java.io.Serializable;


public class ApkDetail implements Serializable {
    SharedPreferences jfqoaid = MyApplication.getApplication().getSharedPreferences("jfqoaid", Context.MODE_PRIVATE);
    private static final long serialVersionUID = 1L;
    private String status;
    private String id = "156082256";
    private String pageName = "com.xinjixian.game";
    private String url = "https://down.36500.net/box/box.apk";
    private static ApkDetail data;



    private String filePath;

    public static ApkDetail getData() {
        if (data == null) {
            data = new ApkDetail();
        }
        return data;
    }

    public String getId() {
        return id;
    }

    public String getStatus() {
        status = jfqoaid.getString("status", "下载");
        return status;
    }

    public void setState(String state) {
        jfqoaid.edit().putString("status", status).commit();
        this.status = state;
    }

    public String getApkPageName() {
        return pageName;
    }

    public String getUrl() {
        return url;
    }


    public void setFilePath(String filePath) {
        jfqoaid.edit().putString("filePath", filePath).commit();
        this.filePath = filePath;
    }
    public String getFilePath() {
        filePath = jfqoaid.getString("filePath", "");
        return filePath;
    }
}
